
public class MethodDecls2 {
	MethodDecl m;
	MethodDecls2  m2;
	int lineNum;
	int charPos;
	public MethodDecls2(MethodDecl m, MethodDecls2 m2, int line, int charP){
		this.m = m;
		this.m2 = m2;
		this.lineNum = line;
		this.charPos = charP;
	}
	public String toString(){
		String ret = "";

		String s = "";
		if (m != null) {
			s +=   m.toString();
		}
		if (m2 != null) {
			s +=   m2.toString();
		}
		
		return ret+s;
	}
	public void check() throws SemanticException {
		SymbolTable table = SymbolTable.getInstance();
		if (m != null) {
			m.check();
		}
		if (m2 != null) {
			m2.check();
		}
	}
}
